﻿<%@ Page Title="" Language="C#" StylesheetTheme="AdminTheme" MasterPageFile="~/Backend/mtpAdmin.master"
    AutoEventWireup="true" CodeBehind="DSDonvi.aspx.cs" Inherits="HPortal.Backend.DSDonvi" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <fieldset>
        <legend>Danh sách chủ nhiệm đề tài ::</legend>
        <table width="100%" height="40">
            <tr>
                <td style="text-align: right">
                    Tên chủ nhiệm đề tài
                </td>
                <td>
                    <asp:TextBox ID="txtKeyword" runat="server" Width="350px"></asp:TextBox>
                    &nbsp;&nbsp;
                    <asp:Button ID="cmdSearch" runat="server" Height="25px" OnClick="cmdSearch_Click"
                        Text="Tìm kiếm" Width="109px" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:GridView ID="grvChunhiem" runat="server" AutoGenerateColumns="False" SkinID="tGridview"
                        Width="100%" AllowPaging="True" 
                        onpageindexchanging="grvChunhiem_PageIndexChanging" PageSize="20">
                        <Columns>
                            <asp:BoundField DataField="Ten" HeaderText="Tên đơn vị" ItemStyle-HorizontalAlign="Left">
                                <ItemStyle HorizontalAlign="Justify" Width="300px" ></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="Diachi" HeaderText="Địa chỉ">
                                <ItemStyle Width="250px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Dienthoai" HeaderText="Điện thoại">
                                <ItemStyle Width="150px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Email" HeaderText="EMail">
                                <ItemStyle Width="150px" />
                            </asp:BoundField>
                            <asp:TemplateField ShowHeader="False">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkChonTiendo" runat="server" CausesValidation="False" CommandName="Select"
                                        Text="Chọn" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.DonviID")%>'
                                        OnClick="lnkChonTiendo_Click"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField ShowHeader="False">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lnkXoaTiendo" runat="server" CausesValidation="False" CommandName="Select"
                                        Text="Xóa" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.DonviID")%>'
                                        OnClick="lnkXoaTiendo_Click"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <br />
                    Đơn vị:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:TextBox ID="txtDonvi" runat="server" Width="200px"></asp:TextBox>
                     &nbsp;&nbsp; Địa chỉ:
                    <asp:TextBox ID="txtDiachi" runat="server" Width="200px"></asp:TextBox>
                    &nbsp;&nbsp;<br />
                    Điện thoại:
                    <asp:TextBox ID="txtDienthoai" runat="server" Width="200px"></asp:TextBox>
                     &nbsp;&nbsp;&nbsp; EMail:&nbsp;
                    <asp:TextBox ID="txtEMail" runat="server" Width="200px"></asp:TextBox>
                     <asp:Button ID="cmdThemTiendo" runat="server" Text="Thêm đơn vị thực hiện" 
                        OnClick="cmdThemTiendo_Click" Width="150px" />
                    &nbsp;
                    <asp:Button ID="cmdEditTiendo" runat="server" OnClick="cmdEditTiendo_Click" 
                        Text="Sửa thông tin" Width="150px" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                </td>
            </tr>
        </table>
    </fieldset>
</asp:Content>
